<%--
  Created by IntelliJ IDEA.
  User: E303
  Date: 2021-11-10
  Time: 10:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div>
    <a href="/User/save">
        <button name="添加">添加</button>
    </a>
</div>
<table>
<tr>
    <th>编号</th>
    <th>姓名</th>
    <th>操作</th>
</tr>
    <c:forEach items="${list}" var="user">
        <tr>
            <td>${user.id}</td>
            <td>${user.name}</td>
            <td>
                <a href="/User/update/${user.id}">修改</a>
                <a href="/User/delect/${user.id}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
